{% extends 'client/base.html' %}
{% block title %}{{ data_s.webapp.web_name }}_{{ data_s.current_column.column_name }}{% endblock %}
{% block keywords %} {{ data_s.current_column.column_name }}_{{ data_s.current_column.column_keyword or '' }} {% endblock %}
{% block description %}{{ data_s.current_column.column_name }}_{{ data_s.current_column.column_description or '' }} {% endblock %}
{% block head_js %}
    <link href="{{ url_for('static',filename='css/list.css') }}" rel="stylesheet">
{% endblock %}
{% block content %}
    <div class="container">
        <div class="content">
            <div class="col-lg-8 left">
                <div class="list_title">
	<span class="crumb">当前位置： <a href="{{ data_s.webapp.web_domain }}">网站首页</a> &gt;<a
            href="">{{ data_s.current_column.column_name }}</a>
</span></div>
                <div>
                    <!--列表开始 -->
                    {% for data in data_s.doc_list %}
                        <div class="list_box">
                            <a href="{{ url_for('client_bp.article',uid=data.uuid) }}" target="_blank" class="list_box_a">
                                <h3>{{ data.title or '' }}</h3>
                                <p class="describe">{% if data.content or data.description %}
                                    {{ (data.description) or (data.content|striptags)[:80] }}{% endif %}</p>
                            </a>
                            <div class="list_str">
                                时间：{{ data.create_time.strftime('%Y-%m-%d') }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                作者：{{ data.author or '管理员' }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <span class="bds_more">分享 <i class="fa fa-mail-forward fa-lg"
                                                             style="font-size: 0.333333em;"></i></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </div>
                        </div>
                    {% endfor %}
                    <!-- 列表结束 -->
                    <!-- 分页开始 -->
                    {% if data_s.page.pages>1 %}
                        <ul class="page">
                            <a href="{{ url }}?page=1" target="_self">首页</a>

                            <a {% if data_s.page.has_prev %}
                                href="{{ url }}?page={{ data_s.page.prev_num }}"
                                target="_self" {% endif %}>上一页</a>
                            {% for page in data_s.page.iter_pages(2,2,2,2) %}
                                {% if data_s.page.page==page %}
                                    <a style="background: #f9e79e;">{{ page }}</a>
                                {% else %}
                                    {% if page %}
                                        <a href="{{ url }}?page={{ page }}"
                                           target="_self">{{ page }}</a>
                                    {% endif %}
                                {% endif %}
                            {% endfor %}

                            <a {% if data_s.page.has_next %}
                                href="{{ url }}?page={{ data_s.page.next_num }}"{% endif %}>下一页</a>

                            <a {% if not data_s.page.pages==data_s.page.page %}
                                href="{{ url }}?page={{ data_s.page.pages }}"
                                target="_self" {% endif %}>尾页</a></ul>
                    {% endif %}
                    <!-- 分页结束 -->
                </div>
            </div>
            <!-- right -->
            <div class="col-lg-4 right">
                <div class="smallblock">
                    <div class="list_title"><i class="fa fa-free-code-camp fa-lg"></i> 本栏目热门阅读</div>
                    <ul class="smallblock_ul">
                        {% for data in data_s.host %}
                            <li><a href="{{ url_for('client_bp.article',uid=data.uuid) }}" title="{{ data.title }}">{{ data.title[:18] }}{% if data.title|length>18 %}
                                ...{% endif %}</a><span>{{ data.create_time.strftime('%m-%d') }}</span></li>
                        {% endfor %}
                    </ul>
                </div>

                <div class="smallblock">
                    <div class="list_title"><i class="fa fa-paper-plane fa-lg"></i> 本栏目最新文章</div>
                    <ul class="smallblock_ul">
                        {% for data in data_s.new_list %}
                            <li><a href="{{ url_for('client_bp.article',uid=data.uuid) }}" title="{{ data.title }}">{{ data.title[:18] }}{% if data.title|length>18 %}...{% endif %}</a><span>{{ data.create_time.strftime('%m-%d') }}</span></li>
                        {% endfor %}
                    </ul>
                </div>


                <div class="smallblock">
                    <div class="list_title"><i class="fa fa-random fa-lg"></i> 本栏目随机阅读</div>
                    <ul class="smallblock_ul">
                        {% for data in data_s.random_list %}
                        <li><a href="{{ url_for('client_bp.article',uid=data.uuid) }}" title="{{ data.title }}">{{ data.title[:18] }}{% if data.title|length>18 %}...{% endif %}</a><span>{{ data.create_time.strftime('%m-%d') }}</span></li>
                         {% endfor %}
                    </ul>
                </div>

                <div class="ad2"><!-- 广告 --></div>
            </div>
        </div>
    </div>
{% endblock %}